maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=sof-firmware
pkgver=2024.09
pkgrel=0
pkgdesc="Sound Open Firmware"
url="https://github.com/thesofproject/sof-bin"
arch="noarch"
license="BSD-3-Clause AND MIT AND ISC"
options="!check"
subpackages="$pkgname-doc"
source="https://github.com/thesofproject/sof-bin/releases/download/v$pkgver/sof-bin-$pkgver.tar.gz"
builddir="$srcdir/sof-bin-$pkgver"

provides="sof-bin=$pkgver-r$pkgrel"
replaces="sof-bin"

package() {
	mkdir -p "$pkgdir"/usr/share/licenses \
		"$pkgdir"/lib/firmware/intel

	cp -a sof* "$pkgdir"/lib/firmware/intel/

	install -m644 LICENCE.* Notice.* "$pkgdir"/usr/share/licenses/
}

sha512sums="
b8a199afba7289a39485662741fbf8ecb47e9c91e461478e3e2d523c12986bfddf8a1f61b4ba0a2c689008de8808a2df00f05aacb541a2fb16a6a5dbd7481ecf  sof-bin-2024.09.tar.gz
"
